import request from '@/utils/request'

export const checkitems=()=>
  request({
    url:"/lm/checkitems",
    method:"get"
  })

  export const checkitem=()=>
  request({
    url:"/lm/checkitem",
    method:"get"
  })


export const addtcheckitem=(checkitem)=>
  request({
    url:"/lm/addtcheckitem",
    method:"post",
    data:checkitem
  })

  export const tsetmealcheckgroup=(checkitem_id)=>
    request({
        url:"/lm/tsetmealcheckgroup/"+checkitem_id,
        method:"post"
    })

export const addtsetmealcheckgroup=(tsetmealcheckgroup)=>
    request({
      url:'/lm/addtsetmealcheckgroup',
      method:'post',
      data:tsetmealcheckgroup
    })


    export const updtcheckitem=(tcheckitem)=>
    request({
        url:"/lm/updtcheckitem/",
        method:"post",
        data:tcheckitem
    })

    export const delById=(checkgroup_id)=>
    request({
      url:"/lm/"+checkgroup_id,
      method:'delete'
    })

    export const addcheckgroupcheckitem=(checkgroup_id,checkitem_id)=>
    request({
      url:"/lm/"+checkgroup_id+"/"+checkitem_id,
      method:'post'
    })
